function test_class = generateTestClass(gnd, varargin)
    par.average = 10;
    par.k = 5;
    par = process_parameter(par, varargin{:});

    class = unique(gnd);
    n_class = length(class);
    test_class = {};
    
    for i=1:length(par.k)
        k = par.k(i);
        sum_criteria = 0;
        for j = 1:par.average
            % pick randomly k classes
            chosen_class = class(randCombination(n_class, k))';
            test_class{k,j} = chosen_class;
        end    
    end
end
